package cn.chinaunicom.admin.service;

import java.util.List;

import cn.chinaunicom.admin.entity.AppServer;
import cn.chinaunicom.admin.entity.bo.RgstBO;
import cn.chinaunicom.admin.entity.form.RgstForm;

/**
 * @ProjectName: esay-secret-server
 * @Package: cn.chinaunicom.admin.service
 * @ClassName: IAppServerService
 * @Description: java类作用描述
 * @Author: wangjc
 * @CreateDate: 2023/11/24
 * @UpdateUser: wangjc
 * @UpdateDate: 2023/11/24
 * @UpdateRemark: 更新内容
 * @Version: 1.0
 */
public interface IAppServerService {
    /**
     * 应用注册
     *
     * @param app
     *
     * @return
     */
    AppServer add(AppServer app);

    /**
     * 关闭应用
     *
     * @param app
     */
    void disabeld(AppServer app);

    /**
     * 获取应用app通行行token
     *
     * @param app
     *
     * @return
     */
    String getAccessToken(AppServer app);

    /**
     * 查询应用信息
     *
     * @param app
     *
     * @return
     */
    AppServer get(AppServer app);

    /**
     * 修改
     * @param app
     * @return
     */
    AppServer upd(AppServer app);

    /**
     * 查询全部
     *
     * @return
     */
    List<AppServer> getAll();

    /**
     * 一键注册应用
     *
     * @param form
     * @return
     */
    RgstBO register(RgstForm form);
}